]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Give dummy cursor actor a name
authorJonas Ådahl <jadahl@gmail.com>
Fri, 5 Sep 2025 13:53:18 +0000 (15:53 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 5 Sep 2025 21:02:20 +0000 (21:02 +0000)
Helps when introspecting the actor tree.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3863>

js/ui/layout.js

index a66f65b1e871f642d103c0657b07ece96675609a..354ef60d412d593a55803fff36cd487bd90f4ff6 100644 (file)
@@ -308,7 +308,7 @@ export const LayoutManager = GObject.registerClass({
 
         // A dummy actor that tracks the mouse or text cursor, based on the
         // position and size set in setDummyCursorGeometry.
-        this.dummyCursor = new St.Widget({width: 0, height: 0, opacity: 0});
+        this.dummyCursor = new St.Widget({width: 0, height: 0, opacity: 0, name: 'Dummy Cursor'});
         this.uiGroup.add_child(this.dummyCursor);
 
         const feedbackGroup = global.compositor.get_feedback_group();